C1.LiveLinq Namespace > IndexedQueryExtensions Class > ToIndexed Method : ToIndexed<T>(IBindingList) Method |
'Declaration
Public Overloads Shared Function ToIndexed(Of T)( _ ByVal source As System.ComponentModel.IBindingList _ ) As IndexedCollection(Of T)
public static IndexedCollection<T> ToIndexed<T>( System.ComponentModel.IBindingList source )
Use this method to index and query your existing data sources. The only requirements for the data source is that it implements the standard data binding interface System.ComponentModel.IBindingList.
Note: Indexes created on the resulting C1.LiveLinq.Collections.IndexedCollection<T> are owned by it and not by the original data source. Every ToIndexed() call creates a separate object that has its own separate indexes. Avoid calling ToIndexed() repeatedly for the same collection because it can increase the cost of maintaining indexes.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2